package(default_visibility = ["//tensorflow_federated/python/research"])

licenses(["notice"])

py_library(
    name = "aggregate_fn",
    srcs = ["aggregate_fn.py"],
    srcs_version = "PY3",
    deps = ["//tensorflow_federated"],
)

py_library(
    name = "attacked_fedavg",
    srcs = ["attacked_fedavg.py"],
    srcs_version = "PY3",
    deps = [
        ":aggregate_fn",
        "//tensorflow_federated",
        "//tensorflow_federated/python/tensorflow_libs:tensor_utils",
    ],
)

py_test(
    name = "attacked_fedavg_test",
    size = "large",
    srcs = ["attacked_fedavg_test.py"],
    python_version = "PY3",
    srcs_version = "PY3",
    deps = [
        ":aggregate_fn",
        ":attacked_fedavg",
        "//tensorflow_federated",
    ],
)

py_binary(
    name = "emnist_with_targeted_attack",
    srcs = ["emnist_with_targeted_attack.py"],
    python_version = "PY3",
    deps = [
        ":aggregate_fn",
        ":attacked_fedavg",
        "//tensorflow_federated",
    ],
)
